<div class=page_tit>
  <h2><img src="{$ts['app']['icon_url']}" /> {$ts['app']['app_alias']}</h2>  
  <php>
        if (in_array((MODULE_NAME), array('Index')) && !in_array((ACTION_NAME), array('find','search','add'))) {
            $index_class = 'on';
        } else if ($gid || in_array((MODULE_NAME), array('SomeOne')) || in_array((MODULE_NAME), array('Index')) && in_array((ACTION_NAME), array('add'))) {
            $my_class = 'on';
        } else if (in_array((MODULE_NAME), array('Index')) && in_array((ACTION_NAME), array('find','search'))) {
            $find_class = 'on';
        } else {
            $find_class = '';
        }
  </php>
  <ul class="tit_tab">
    <li>
    	<a href="{:U('group/Index/index')}" class="{$index_class}">{$ts['app']['app_alias']}首页</a>
    </li>
    <li id="dropdown_my_group">
    	<a href="{:U('group/SomeOne')}" class="{$my_class}">我的{$ts['app']['app_alias']} <span class="more"></span></a>
    	<div class="mg_lapinfo">
    	  <div class="mb5">
    	    <volist name="all_my_app" id="vo">
    		  <a href="{:U('group/Group/index',array('gid'=>$vo['id']))}" class="g">
    			<img src="__ROOT__/thumb.php?w=80&h=80&url={$vo['logo']|get_photo_url}" class="mg_lpimg">{$vo.name|getShort=11,'...'}
    		  </a>
        	</volist>
          </div>
	  	  <if condition="$config['createGroup']">
          <php>$_class = empty($all_my_app) ? '' : 'lineS_top';</php>
      	  <div class="{$_class}">      	  
      		<a href="{:U('group/Index/add')}" style="width:auto; display:block; margin-left:8px" class="g"><span class="addnew">+</span>创建群组</a>
      	  </div>
      	  </if>
        </div>
    </li>
    <li>
    	<a href="{:U('group/Index/find')}" class="{$find_class}">发现{$ts['app']['app_alias']}</a>
    </li>
  </ul>
  <div class="c"></div>
</div>
<script>
$(document).ready(function(){
	$("#dropdown_my_group").hover(
		function(){ $(this).addClass("hover"); },
	    function(){ $(this).removeClass("hover"); }
	);
});
</script>